package cn.yaboya.controller;

import cn.yaboya.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("/user/{id}")
    User getById(@PathVariable Long id){
        return new User(-1L,"123","无此用户");
    };
}
